package com.eastfair.pay.vo;

import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.pay.demand.SettlementGroup;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 实体类VO
 * 结算单
 * </p>
 *
 * @author clm
 * @since 2022-06-08
 */
@Data
public class SettlementVO  {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.all.class})
    private Long id;


    /**
     * 结算单号
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.all.class})
    private String settleNumber;

    /**
     * 客户id
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.settlementQueryPage.class,SettlementGroup.all.class})
    private Long cutomerId;

    /**
     * 客户名称
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.all.class})
    private String cutomerName;

    /**
     * 展会id
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.all.class})
    private Long exhibitionId;

    /**
     * 展会名称
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.all.class})
    private String exhibitionName;

    /**
     * 结算日期
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.all.class})
    private LocalDateTime settleTime;

    /**
     * 应付金额
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.all.class})
    private BigDecimal payableAmount;

    /**
     * 已付金额
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.all.class})
    private BigDecimal payedAmount;
    /**
     *合计
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.settlementQueryById.class})
    private BigDecimal totalAmout;
    /**
     * 应退金额
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.all.class})
    private BigDecimal returnAmount;

    /**
     * 已退金额
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.settlementQueryPage.class,SettlementGroup.all.class})
    private BigDecimal returnedAmount;

    /**
     * 开票金额
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.all.class})
    private BigDecimal invoiceAmount;


    /**
     * 未开票金额
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.settlementQueryPage.class,SettlementGroup.all.class})
    private BigDecimal notInvoiceAmount;


    /**
     * 场地保证金
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.settlementQueryById.class})
    private BigDecimal spaceBond;

    /**
     * 服务预存款
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.settlementQueryById.class})
    private BigDecimal serviceBond;

    /**
     * 结算详情
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {SettlementGroup.settlementQueryById.class})
    private List<SettlementDetailsVO> detailsVOList;

    /**
     * 退款申请状态
     */
    @ApiModelProperty(value = "退款申请状态")
    @VoInfo(groups = {SettlementGroup.settlementQueryPage.class})
    private String refundApplyStatus;

}
